|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpow.webserver.UserTab
public class UserTab
User objects are stored in a UserTab object which can be serialized in a file on the server disk
User,
Serialized Form| Constructor Summary | |
|---|---|
UserTab()
create a empty list of users |
|
| Method Summary | |
|---|---|
boolean |
checkUser(java.lang.String log,
java.lang.String pwd)
Check if the password of the user having the specified login is correct |
java.util.Iterator<java.lang.String> |
getItrUsr(java.lang.String log)
return the list of all drone which may be controlled by the user |
java.util.Iterator<java.lang.String> |
getLoginIterator()
|
void |
insert(User u)
insert a user in the list |
boolean |
isInside(java.lang.String log)
check if an user with this logging exists yet |
void |
remove(java.lang.String log)
remove the user with the spefied login |
User |
seek(java.lang.String log)
return the user corresponding to the given login |
void |
serialize(java.lang.String nomfichier)
Save the object in a file |
static UserTab |
unserialize(java.lang.String nomfichier)
load the object from a file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTab()
| Method Detail |
|---|
public void insert(User u)
throws AlreadyRegisteredUserException
u - a user object to insert
AlreadyRegisteredUserExceptionpublic void remove(java.lang.String log)
log - the login of the user to removepublic User seek(java.lang.String log)
log - the login of the user to seek
public boolean isInside(java.lang.String log)
log - the login of the user to check
public boolean checkUser(java.lang.String log,
java.lang.String pwd)
log - the login of the userpwd - the password
public java.util.Iterator<java.lang.String> getItrUsr(java.lang.String log)
log - the login of the user
public java.util.Iterator<java.lang.String> getLoginIterator()
public void serialize(java.lang.String nomfichier)
nomfichier - the file where the user's accounts will be storedpublic static UserTab unserialize(java.lang.String nomfichier)
nomfichier - the file where the user's accounts are stored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||